import EmptyRouter from "@/components/common/EmptyRouter";

const openRouter = {
	path: "shopping",
	name: "shopping",
	redirect: "",
	// 这里必须添加一个空的路由组件或者首页布局组件，不然子路由不会渲染
	component: EmptyRouter,
	meta: {
		title: "商品模块",
	},
	img: 1,
	children: [
		{
			path: "collect",
			component: () =>
				import(
					/* webpackChunkName: "access-vendor-management" */ "@/pages/shopping/collect/collect.vue"
				),
			name: "collect",
			__full_path__: "/shopping/collect",
			meta: {
				title: "收藏管理",
			},
		},
		{
			path: "comment",
			component: () =>
				import(
					/* webpackChunkName: "access-vendor-management" */ "@/pages/shopping/comment/comment.vue"
				),
			name: "comment",
			__full_path__: "/shopping/comment",
			meta: {
				title: "评论管理",
			},
		},
		{
			path: "likes",
			component: () =>
				import(
					/* webpackChunkName: "access-vendor-management" */ "@/pages/shopping/likes/likes.vue"
				),
			name: "likes",
			__full_path__: "/shopping/likes",
			meta: {
				title: "点赞管理",
			},
		},
		{
			path: "goods",
			component: () =>
				import(
					/* webpackChunkName: "access-vendor-management" */ "@/pages/shopping/goods/goods.vue"
				),
			name: "goods",
			__full_path__: "/shopping/goods",
			meta: {
				title: "商品管理",
			},
		},
	],
};

export default openRouter;
